package com.aspose.cells;

class zoo {
   boolean a = false;
   zoq b = new zoq();
   private String c;
   private boolean d = false;
   private boolean e = false;
   private int f = 0;
   private String g = null;
   private int h = 0;
   private String i = null;
   private int j = -1;
   private String k = null;
   private zakp l = new zakp(false);
   private int m = -1;
   private int n = -1;
   private boolean o = false;
   private boolean p = false;
   private boolean q = false;
   private boolean r = false;
   private boolean s = false;
   private boolean t = false;
   private boolean u = false;
   private int v = -1;
   private static final com.aspose.cells.b.c.a.za w = new com.aspose.cells.b.c.a.za(new String[]{"(使用中文字体)", "Berlin Sans FB Demi", "Aharoni", "Brush Script MT", "Monotype Corsiva"});

   String a() {
      return this.c;
   }

   void a(String var1) {
      this.c = var1;
      this.b.b(1L);
   }

   boolean b() {
      return this.d;
   }

   void a(boolean var1) {
      this.d = var1;
      this.b.b(1L);
   }

   boolean c() {
      return this.e;
   }

   void b(boolean var1) {
      this.e = var1;
      this.b.b(2L);
   }

   int d() {
      return this.f;
   }

   void a(int var1) {
      this.f = var1;
      this.b.b(4L);
   }

   String e() {
      return this.g;
   }

   void b(String var1) {
      this.g = var1;
   }

   int f() {
      return this.h;
   }

   void b(int var1) {
      this.h = var1;
      this.b.b(8192L);
   }

   String g() {
      return this.i;
   }

   void c(String var1) {
      this.i = var1;
   }

   double h() {
      return this.v == -1 ? -1.0D : (double)((float)this.v / 20.0F);
   }

   void a(double var1) {
      this.f((int)(var1 * 20.0D));
      this.b.b(8L);
   }

   int i() {
      return this.j;
   }

   void c(int var1) {
      this.j = var1;
      this.b.b(16L);
   }

   String j() {
      return this.k;
   }

   void d(String var1) {
      switch(w.a(var1)) {
      case 0:
         return;
      default:
         this.k = var1;
         this.b.b(32L);
      }
   }

   zakp k() {
      return this.l;
   }

   void a(zakp var1) {
      this.l = var1;
      this.b.b(64L);
   }

   int l() {
      return this.m;
   }

   void d(int var1) {
      this.m = var1;
   }

   int m() {
      return this.n;
   }

   void e(int var1) {
      this.n = var1;
   }

   boolean n() {
      return this.o;
   }

   void c(boolean var1) {
      this.o = var1;
      if (this.o) {
         this.p = false;
      }

      this.b.b(256L);
   }

   boolean o() {
      return this.p;
   }

   void d(boolean var1) {
      this.p = var1;
      if (this.p) {
         this.o = false;
      }

      this.b.b(256L);
   }

   boolean p() {
      return this.q;
   }

   void e(boolean var1) {
      this.q = var1;
      if (this.q) {
         this.r = false;
      }

      this.b.b(512L);
   }

   boolean q() {
      return this.r;
   }

   void f(boolean var1) {
      this.r = var1;
      if (this.r) {
         this.q = false;
      }

      this.b.b(1024L);
   }

   public boolean r() {
      return this.s;
   }

   public void g(boolean var1) {
      this.s = var1;
      this.b.b(16384L);
   }

   boolean s() {
      return this.t;
   }

   void h(boolean var1) {
      this.t = var1;
      if (this.t) {
         this.u = false;
      }

      this.b.b(32768L);
   }

   boolean t() {
      return this.u;
   }

   void i(boolean var1) {
      this.u = var1;
      if (this.u) {
         this.t = false;
      }

      this.b.b(32768L);
   }

   int u() {
      return this.v;
   }

   void f(int var1) {
      this.v = var1;
      this.b.b(8L);
      this.b.b(2048L);
   }

   void a(zoo var1, double var2) {
      if (var1 != null) {
         if (var1.b.a(8192L) && !this.b.a(8192L)) {
            this.b(var1.f());
         }

         if (var1.b.a(64L) && !this.b.a(64L)) {
            this.k().f(var1.k());
         }

         if (var1.b.a(16L) && !this.b.a(16L)) {
            this.c(var1.i());
         }

         if (var1.b.a(2L) && !this.b.a(2L)) {
            this.b(var1.c());
         }

         if (var1.b.a(1L) && !this.b.a(1L)) {
            this.a(var1.b());
         }

         if (var1.b.a(4L) && !this.b.a(4L)) {
            this.a(var1.d());
         }

         if (var1.b.a(256L) && !this.b.a(256L)) {
            this.c(var1.n());
         }

         if (var1.b.a(256L) && !this.b.a(256L)) {
            this.c(var1.n());
         }

         if (var1.b.a(512L) && !this.b.a(512L)) {
            this.e(var1.p());
         }

         if (var1.b.a(1024L) && !this.b.a(1024L)) {
            this.f(var1.q());
         }

         if (var1.b.a(16384L)) {
            this.g(var1.r());
         }

         if (var1.b.a(32768L)) {
            this.h(var1.s());
            this.i(var1.t());
         }

         if (var1.b.a(32L) && !this.b.a(32L)) {
            this.d(var1.j());
         }

         if (var1.b.a(2048L) && !this.b.a(2048L)) {
            this.f((int)((double)var1.u() * var2));
         }

         if (var1.b.a(4096L) && !this.b.a(4096L)) {
            this.a(var1.a());
         }

      }
   }

   void a(Style var1) {
      Font var2 = var1.getFont();
      if (var2 != null) {
         this.a(var2);
      }
   }

   void a(Font var1) {
      if (var1 != null) {
         if (this.b.a(64L) && !var1.f(16)) {
            var1.b.f(this.k());
            var1.g(16);
         }

         if (this.i() != -1 && this.b.a(16L) && !var1.f(14)) {
            var1.a(com.aspose.cells.b.a.ze.a(this.i()));
         }

         if (this.b.a(2L) && !var1.f(17)) {
            var1.setBold(this.c());
         }

         if (this.b.a(1L) && !var1.f(18)) {
            var1.setItalic(this.b());
         }

         if (this.b.a(4L) && !var1.f(19)) {
            var1.setUnderline(this.d());
         }

         if (this.b.a(256L) && !var1.f(20)) {
            if (this.o()) {
               var1.setStrikeType(1);
            } else if (this.n()) {
               var1.setStrikeout(this.n());
            } else {
               var1.setStrikeType(2);
            }
         }

         if (this.b.a(512L) && !var1.f(23)) {
            var1.setSubscript(this.p());
         }

         if (this.b.a(1024L) && !var1.f(23)) {
            var1.setSuperscript(this.q());
         }

         if (this.j() != null && this.b.a(32L) && !var1.f(13)) {
            if (-1 == this.j().indexOf("+mn-")) {
               var1.b(this.j());
            }

            switch(w.a(this.j())) {
            case 1:
            case 2:
               var1.setBold(true);
               break;
            case 3:
            case 4:
               var1.setItalic(true);
            }
         }

         if (this.m() != -1 && !var1.f(15)) {
            var1.setCharset(this.m());
         }

         if (this.u() != -1 && this.b.a(2048L) && !var1.f(17)) {
            var1.c(this.u());
         }

         if (this.h() != -1.0D && this.b.a(8L) && !var1.f(12)) {
            var1.setDoubleSize(this.h());
         }

         if (this.a() != null) {
            var1.a(this.a());
         }

         if (this.u() != -1 && this.b.a(8192L) && !var1.f(23)) {
            var1.a(this.f());
         }

         if (this.b.a(16384L)) {
            var1.setNormalizeHeights(this.r());
         }

         if (this.b.a(32768L)) {
            if (this.t()) {
               var1.setCapsType(1);
            } else if (this.s()) {
               var1.setCapsType(2);
            } else {
               var1.setCapsType(0);
            }
         }

         if (this.e() != null) {
            ;
         }

      }
   }

   void b(Font var1) {
      if (var1 != null) {
         if (this.b.a(64L)) {
            var1.b.f(this.k());
            var1.g(16);
         }

         if (this.i() != -1 && this.b.a(16L)) {
            var1.a(com.aspose.cells.b.a.ze.a(this.i()));
         }

         if (this.b.a(2L)) {
            var1.setBold(this.c());
         }

         if (this.b.a(1L)) {
            var1.setItalic(this.b());
         }

         if (this.b.a(4L)) {
            var1.setUnderline(this.d());
         }

         if (this.b.a(256L)) {
            var1.setStrikeout(this.n());
         }

         if (this.b.a(256L) && this.o()) {
            var1.setStrikeType(1);
         }

         if (this.b.a(512L)) {
            var1.setSubscript(this.p());
         }

         if (this.b.a(1024L)) {
            var1.setSuperscript(this.q());
         }

         if (this.j() != null && this.b.a(32L)) {
            var1.b(this.j());
            switch(w.a(this.j())) {
            case 1:
            case 2:
               var1.setBold(true);
               break;
            case 3:
            case 4:
               var1.setItalic(true);
            }
         }

         if (this.u() != -1 && this.b.a(2048L)) {
            var1.c(this.u());
         }

         if (this.h() != -1.0D && this.b.a(8L)) {
            var1.setDoubleSize(this.h());
         }

         if (this.a() != null) {
            var1.a(this.a());
         }

         if (this.f() != 0 && this.b.a(8192L)) {
            var1.a(this.f());
         }

         if (this.b.a(16384L)) {
            var1.setNormalizeHeights(this.r());
         }

         if (this.b.a(32768L)) {
            if (this.t()) {
               var1.setCapsType(1);
            } else if (this.s()) {
               var1.setCapsType(2);
            } else {
               var1.setCapsType(0);
            }
         }

      }
   }

   boolean v() {
      return !this.b.a(65535L);
   }
}
